package com.zhoufei.amqp.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyAMQPConfig {

    /**
     * @Author feizhou
     * @Description 发送消息序列化和接收消息反序列化
     * @Date 上午 12:19 2019/7/4 0004
     * @Param []
     * @return org.springframework.amqp.support.converter.MessageConverter
     **/

    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
